package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class XJTShelterRowMapper implements RowMapper<XJTShelter>{


	@Override
	public XJTShelter mapRow(ResultSet rs, int rowNum) throws SQLException {
		XJTShelter  lj= new XJTShelter();
		lj.setId(rs.getInt("id"));
		lj.setGis_id(rs.getInt("gis_id"));
		lj.setShelter_name(rs.getString("shelter_name"));
		lj.setShelter_site(rs.getString("shelter_site"));
		lj.setShelter_lon(rs.getString("shelter_lon"));
		lj.setShelter_lat(rs.getString("shelter_lat"));
		lj.setGalleryful(rs.getString("galleryful"));
		lj.setProtection_level(rs.getString("protection_level"));
		lj.setProject_type(rs.getString("project_type"));
		lj.setUse_ordinary(rs.getString("use_ordinary"));
		lj.setCovered_area(rs.getString("covered_area"));
		lj.setUsable_area(rs.getString("usable_area"));
		lj.setConnection_user(rs.getString("connection_user"));
		lj.setConnection_tel(rs.getString("connection_tel"));
		lj.setDuty_tel(rs.getString("duty_tel"));
		lj.setFlood_control_member(rs.getString("flood_control_member"));
		lj.setFlood_control_tel(rs.getString("flood_control_tel"));





		return lj;
	}

}
